﻿using PrearrangedChaos.AgileZen.Service.Model;
using PrearrangedChaos.AgileZen.Service.Rest;

namespace PrearrangedChaos.AgileZen.Service
{
    internal class ZenUserCollection<TCollection> : ZenResourceCollection<TCollection, IUser>, IZenUserEnumerable
        where TCollection : class, IPagingResponse<IUser>
    {
        public ZenUserCollection(string apiKey, int pageSize, int projectId)
            : base(apiKey, RestArguments.User(projectId, pageSize: pageSize))
        {
        }

        public ZenUserCollection(string apiKey, int pageSize, int projectId, int roleId)
            : base(apiKey, RestArguments.User(projectId, roleId, pageSize))
        {
        }
    }
}